Add nomigrate config option to disable migration/restore
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 20 Oct 2009 07:45:12 +0000 (08:45 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 20 Oct 2009 07:45:12 +0000 (08:45 +0100)
commit87cb99a6dda5f1b5b0ace461757eae782a3d7873
tree41b3b542fc08f4cc520271aba421813eb1b028e4
parent5cee2dafd8e2e76f7cc2a783102399822b5bb554
Add nomigrate config option to disable migration/restore

The new nomigrate option can be set to non-zero in vm.cfg
(for both hvm and pvm) to disallow a guest from being
migrated or restored.  (Save is still allowed for the purpose
of checkpointing.)  The option persists into a save file
and is also communicated into the hypervisor, the latter
for the purposes of a to-be-added hypercall for communicating
to guests that migration is disallowed (which will be
used initially for userland TSC-related sensing, but may
find other uses).

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
12 files changed:
tools/libxc/xc_domain.c
tools/libxc/xenctrl.h
tools/python/xen/lowlevel/xc/xc.c
tools/python/xen/xend/XendCheckpoint.py
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xm/create.py
tools/python/xen/xm/xenapi_create.py
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/include/asm-x86/domain.h
xen/include/public/domctl.h